package com.topisv.tms.service.stock.check;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.topisv.tms.entity.stock.check.CheckPlanSetting;
import com.topisv.tms.repository.stock.check.CheckPlanSettingDao;

@Component
@Transactional(readOnly = true)
public class CheckPlanSettingService {

	@Autowired
	private CheckPlanSettingDao checkPlanSettingDao;
	
	/**
	 * 查找盘点周期设置
	 * @param custCode
	 * @return List<CheckPlanSetting>
	 */
	public List<CheckPlanSetting> loadByCustomerCode(String custCode) {
		return checkPlanSettingDao.loadByCustomerCode(custCode);
	}
	@Transactional(readOnly = false)
	public void saveCheckPlanSetting(CheckPlanSetting plan){
		checkPlanSettingDao.save(plan);
	}
	
}